import { DefaultFooter, getMenuData, getPageTitle } from '@ant-design/pro-layout';
import { Helmet } from 'react-helmet';
import { Link } from 'umi';
import React from 'react';
import { connect } from 'dva';
import SelectLang from '@/components/SelectLang';
// import logo from '../assets/img/login_logo.png';
import logo from "@/assets/img/login_logo.png"
import styles from './UserLayout.less';

const UserLayout = (props) => {
  const {
    route = {
      routes: [],
    },
  } = props;
  const { routes = [] } = route;
  const {
    children,
    location = {
      pathname: '',
    },
  } = props;
  const { breadcrumb } = getMenuData(routes);
  const title = getPageTitle({
    pathname: location.pathname,
    breadcrumb,
    ...props,
  });
  return (
    <>

      <div className={styles.container}>
        <div className={styles["contentwrap"]}></div>
        <div className={styles.content}>
          <div className={styles.header}>
            <img alt="logo" className={styles.logo} src={logo} />
            重庆新泰数字化制造平台
          </div>
          {children}
        </div>
        {/* <div style={{textAlign:'center'}}>系统版本：V1.0</div> */}
        <DefaultFooter
          copyright="2019 北京宏图云锦科技有限公司 All rights reserved 京ICP备19058258号-1"
          links={[{
            // key: 'github',
            // title: "系统版本：V1.0",
            // href: 'https://github.com/ant-design/ant-design-pro',
            // blankTarget: true,
          },]}
        />
      </div>
    </>
  );
};

export default connect(({ settings }) => ({ ...settings }))(UserLayout);
